<!-- ?用于显示当前页所在位置，方便返回 -->
<template>
    <div class="breadcrumb">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item
            v-for="(item, index) in data"
            :key="index"
            :to="{ path: item.url }">{{ item.name }}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script>

export default {
    props: {
        data: {
            type: Array,
            default () {
                return []
            }
        }
    },
    name: 'breadcrumb',
    components: {
    }
}
</script>

<style lang="scss" scoped>
.breadcrumb {
    height: 28px;
}
</style>
